TEST_SRC = $(wildcard tests/*.rs)
TEST_DEPS = $(DEPS) -L libs/hamcrest-rust/target
-tests/tests: $(BIN_TARGETS) $(HAMCREST) $(TEST_SRC)
- $(RUSTC) --test --crate-type=lib $(TEST_DEPS) -Ltarget --out-dir tests tests/tests.rs
+target/tests: $(BIN_TARGETS) $(HAMCREST) $(TEST_SRC)
+ $(RUSTC) --test --crate-type=lib $(TEST_DEPS) -Ltarget --out-dir target tests/tests.rs
-test-integration: tests/tests
- CARGO_BIN_PATH=$(PWD)/target/ tests/tests
+test-integration: target/tests
+ CARGO_BIN_PATH=$(PWD)/target/ $<
test: test-integration
clean:
rm -rf target
- rm -f tests/tests
distclean: clean
cd libs/hamcrest-rust && make clean